<?php

use Illuminate\Support\Facades\Route;
use Modules\Salesmanagement\Http\Controllers\SalesmanagementController;
use Modules\Salesmanagement\Http\Controllers\SalesreturnController;

Route::prefix('salesmanagement')->group(function(){
	//销售出库单
	Route::apiResource('salesmanagement', SalesmanagementController::class);
	Route::GET('Salesinterface', [SalesmanagementController::class, 'Salesinterface']);//PDA列表接口
	Route::GET('Salesdetails/{id}', [SalesmanagementController::class, 'Salesdetails']);//PDA列表详情接口
	Route::GET('Boxnumber/{id}', [SalesmanagementController::class, 'Boxnumber']);//PDA销售出库箱号扫描
	Route::POST('Pdaadddata', [SalesmanagementController::class, 'Pdaadddata']);//PDA数量录入和金蝶推送
	Route::GET('Detailinterface/{id}', [SalesmanagementController::class, 'Detailinterface']);//wms后台详情接口
	
	//销售退货单
	Route::apiResource('salesreturn', SalesreturnController::class);
	//Route::GET('Detailinterface/{id}', [SalesreturnController::class, 'Detailinterface']);//wms后台详情接口
	Route::PUT('Modifydata/{id}', [SalesreturnController::class, 'Modifydata']);//wms修改接口
	Route::PUT('interfaceaudit/{id}', [SalesreturnController::class, 'interfaceApi']);//审核和金蝶推送接口
	Route::GET('barcode/{id}', [SalesreturnController::class, 'barcode']);//PDA 扫描接口

	Route::GET('codetissue/{id}', [SalesreturnController::class, 'codetissue']);//组织PDA 扫描接口
	Route::POST('submitdata', [SalesreturnController::class, 'submitdata']);//提交接口-》组织间扫描-》金蝶推送
	
});
